/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../styles/variables.less';

.tier-card-popover {
  width: 350px !important;
  .ant-card-body {
    padding: 0;
    padding-bottom: 16px;
  }
  .tier-card-footer-action-buttons {
    padding-right: 16px;
  }
}
.edit-icon {
  cursor: pointer;
  height: 20px;
}
.tier-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0px 14px;
  border-bottom: 0.6px solid @grey-15;
  padding-bottom: 16px;

  .tier-header {
    display: flex;
    align-items: center;
    gap: 8px;

    .tier-title {
      font-size: 13px;
      font-weight: 600;
      color: @grey-900;
    }
  }

  .tier-content {
    .tier-loading-container {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;

      .tier-loading-spinner {
        .loading-spinner {
          width: 20px;
          height: 20px;
          border-radius: 50%;
          animation: spin 1s linear infinite;
        }
      }
    }

    .inline-edit-container {
      .tier-selector-display {
        align-content: center;
        min-height: 40px !important;
        border-radius: 6px !important;
        border: 1px solid @grey-22 !important;
        background-color: @white !important;
        padding: 4px 2px !important;
      }
    }

    .tier-display {
      .no-data-placeholder {
        color: @grey-500;
        font-size: 12px;
      }
    }
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
